'use strict';

const Controller = require('egg').Controller;
class Novels extends Controller {
    //搜索
    async novels(){
        const {ctx} = this
        const params = ctx.request.body
        const result = await this.service.novels.getAllNovels(params)
        ctx.body={
            msg:200,
            data:result,
        }
    }
}

module.exports = Novels